#include "StdAfx.h"
#include "ListHeaderShadowUI.h"

CListHeaderShadowUI::CListHeaderShadowUI(void)
{
}

CListHeaderShadowUI::~CListHeaderShadowUI(void)
{
}

LPCTSTR CListHeaderShadowUI::GetClass() const
{
	return _T("ListHeaderShadowUI");
}

SIZE CListHeaderShadowUI::EstimateSize(SIZE /*szAvailable*/)
{
	return CStdSize(0, 3);
}

void CListHeaderShadowUI::DoPaint(HDC hDC, const RECT& /*rcPaint*/)
{
	COLORREF clrBack1, clrBack2;
	m_pManager->GetThemeColorPair(UICOLOR_HEADER_BACKGROUND, clrBack1, clrBack2);
	RECT rcTop = { m_rcItem.left + 1, m_rcItem.top, m_rcItem.right - 1, m_rcItem.top + 4 };
	CBlueRenderEngineUI::DoPaintGradient(hDC, m_pManager, rcTop, clrBack2, clrBack1, true, 8);
}
